<?php
// +-----------------------+
// | 注释不留名，代码随便用 |
// +-----------------------+
namespace app\common\library\goods\action;
use app\common\library\goods\Action;

/**
 * 商品拥有者在pc上可操作行为
 * Class OwnerOperation
 */
class OwnerPcOperation implements Action
{


    public function input(){
        return [
            'text' => '待发货',
            'desc' => '待发货',
            'btn' => [
                [
                    'operate' => 'edit',
                ],
                [
                    'operate' => 'send',
                ]

            ],
        ];
    }

    public function send(){
        return [
            'text'  => '待平台收货',
            'desc'  => '待平台收货',
            'btn'   => [
                ['operate' => 'express'],
                ['operate' => 'alterexpress'],
            ]
        ];
    }


    public function audit(){
        return [
            'text' => '待审核',
            'desc' => '待审核',
            'btn'  => [],
        ];
    }

    public function photo(){
        return [
            'text' => '待平台上传照片',
            'desc' => '待平台上传照片',
            'btn'  => [],
        ];
    }

    public function apply(){
        return [
            'text'  => '待审核',
            'desc'  => '待审核',
            'btn'   => [
            ]
        ];
    }
    public function up(){
        return [
            'text'  => '已上架',
            'desc'  => '已上架',
            'btn'   => [
                ['operate' => 'down'],
            ]
        ];
    }


    public function sold(){
        return [
            'text'  => '已销售',
            'desc'  => '已销售',
            'btn'   => [
            ]
        ];
    }

    public function back(){
        return [
            'text'  => '退回中，待平台发货',
            'desc'  => '退回中，待平台发货',
            'btn'   => []
        ];
    }

    public function down(){
        return [
            'text'  => '已下架',
            'desc'  => '已下架',
            'btn'   => [
                ['operate' => 'edit'],
                ['operate' => 'apply'],
                ['operate' => 'back'],
            ]
        ];
    }

    public function take(){
        return [
            'text'  => '退回中，待收货',
            'desc'  => '退回中，待收货',
            'btn'   => [
                ['operate' => 'express'],
                ['operate' => 'end'],
            ]
        ];
    }


    public function end(){
        return [
            'text'  => '已退回',
            'desc'  => '已退回',
            'btn'   => []
        ];
    }

}